import React from "react"
import { Route,Routes } from "react-router-dom"

//antd ui框架样式
import 'antd/dist/antd.css';

//组件
import Home from "./views/Home"
import Login from "./views/Login"
import Reg from "./views/Reg"
import Buyer from "./views/Buyer"
import Enterprise from "./views/Enterprise"
import HelpAndSupport from "./views/HelpAndSupport"
import Seller from "./views/Seller"
import Solution from "./views/Solution"

import {Navigate} from 'react-router-dom'

function App(){
  return(
    <div className="container">
      <>
        
      </>
      <Routes>
        <Route path='/' element={<Navigate to="/home"/>}></Route>
        <Route path="/home" element={<Home />}></Route>
        <Route path="/login" element={<Login />}></Route>
        {/*买家 */}
        <Route path="/buyer" element={<Buyer />}></Route>
        {/*企业 */}
        <Route path="/enterprise" element={<Enterprise />}></Route>
        {/*帮助和支持 */}
        <Route path="/helpandsupport" element={<HelpAndSupport />}></Route>
        {/*卖家 */}
        <Route path="/seller" element={<Seller />}></Route>
        {/* 解决方案*/}
        <Route path="/solution" element={<Solution />}></Route>
      </Routes>
    </div>
  )
}

export default App;